/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.posplus.losspreventiondataimporter.service;

import com.posplus.strack.POSDAOFactory;
import com.posplus.strack.dao.ProductDAO;
import com.posplus.strack.mapping.Product;
import java.util.List;

/**
 *
 * @author scottw
 */
public class ProductService {
    private ProductDAO productDAO;
    
    public ProductService(POSDAOFactory svtFactory){
        this.productDAO = svtFactory.getProductDAO();
    }

    public List<Product> getAll() {
        return productDAO.findAll();
    }
}
